<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <th:block th:include="include :: header('资产退回')"/>
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-asset-return">
        <input name="assetId" type="hidden" th:value="${asset.id}"/>
        <input name="operateType" type="hidden" th:value="2"/>
        <div class="form-group">
            <label class="col-sm-2 control-label is-required">资产名称：</label>
            <div class="col-sm-8">
                <input class="form-control" type="text" readonly="true" name="assetName" th:value="${asset.assetName}"/>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label is-required">资产编号：</label>
            <div class="col-sm-8">
                <input class="form-control" type="text" readonly="true" name="assetNo" th:value="${asset.assetNo}"/>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label is-required">退回日期：</label>
            <div class="col-sm-8">
                <input type="text" class="time-input" id="operateDate" placeholder="退回日期" name="operateDate" required/>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label is-required">退回数量：</label>
            <div class="col-sm-8">
                <input class="form-control" type="text" name="operateNum"/>
            </div>
        </div>
    </form>
</div>
<th:block th:include="include :: footer"/>
<script type="text/javascript">
    var prefix = ctx + "oa/asset/operate";
    function submitHandler() {
        if ($.validate.form()) {
            $.operate.save(prefix + "/add", $('#form-asset-return').serialize());
        }
    }
</script>
</body>
</html>
